package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP任务记录业务对象 app_task
 *
 * @author heike
 * @date 2023-08-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppTaskBo extends BaseEntity {

    /**
     * ID
     */
    private Long id;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 任务缓存键名
     */
    @NotBlank(message = "任务缓存键名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String keyName;

    /**
     * 任务描述信息
     */
    private String info;

    /**
     * 任务图标
     */
    private String image;

    private String type;
    /**
     * 奖励金币
     */
    @NotNull(message = "奖励金币不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer number;

    /**
     * 每日最大奖励
     */
    @NotNull(message = "每日最大奖励不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer maxNumber;

    /**
     * 状态标记(0=展示，1=不展示)
     */
    @NotBlank(message = "状态标记(0=展示，1=不展示)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sort;

    /**
     * 备注
     */
    private String remark;


}
